﻿using System;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;

namespace RubricaSentimentale
{
	public partial class SingleDetails : UserControl
	{
        public object Contenuto { get; set; }
        public ViewModel vm;
        public Model.Persona.DetailType type;
		public SingleDetails()
		{
			// Required to initialize variables
			InitializeComponent();
            vm = (ViewModel)Utility.LoadState("ViewModel");
		}

		private void Image_Tap(object sender, System.Windows.Input.GestureEventArgs e)
		{
            vm.Current.RemoveDetail(type, Contenuto);
		}
	}
}